import Login from "../pages/login";
import Home from "../pages/home";
import Error from "../pages/error";
import { Navigate } from "react-router-dom";

const routes =  [
  {
    path: "/login",
    element: <Login />,
  },
  {
    path: "/index",
    element: <Home />,
  },
  {
    path: "/error",
    element: <Error />,
  },
  {
    path: "/",
    element: <Navigate to="/index" />,
  },
];

export default routes
